package com.usefullc.crawler.component;

import com.usefullc.crawler.task.TaskMessageHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author: Sampson
 * @date: 2022-03-29 17:58
 */
@Component
@Order(1)
public class CrawlerApplicationRunner implements ApplicationRunner {

    @Autowired
    private TaskMessageHandler taskMessageHandler;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        taskMessageHandler.run();  //todo 暂时不执行了
    }
}
